# -*- coding: utf-8 -*-
# Author: xiantingDeng
# File: 03_进程的创建.py
# Time: 21:17

"""
from multiprocessing import Process
import os

def run_proc(name):
    print("运行子进程：{}{}".format(name,os.getpid()))

if __name__ == '__main__':
    print("父进程：{}".format(os.getpid()))
    p = Process(target=run_proc,args=("test",))
    print("子进程开始")
    p.start()
    p.join()
    print("子进程结束")
"""
import os
from multiprocessing import Process


def Average(num):
    print("正在执行:{}".format(num))

if __name__ == '__main__':

    ret = Process(target=Average, args=("菜鸡",))

    ret.start()
    ret.join()

